<div class="ibox-content">
    <form class="form-horizontal" method="post" action="{:url('OaReimburse/add')}">
        <input type="hidden" name="id" value="{$info.id|default='0'}">
        <div class="form-group">
            <label class="col-sm-2 control-label">报销名称</label>
            <div class="col-sm-4">
                <input name="name" class="form-control" type="text" placeholder="请输入名称" value="{$info.name|default=''}"/>
                <span class="help-block m-b-none"></span>
            </div>
            <label class="col-sm-2 control-label">报销人员</label>
            <div class="col-sm-4">
                <select name="handle_user_id" class="chosen-select">
                    <option value="">选择经手人员</option>
                    {volist name='$sys_user_list' id='vo'}
                    <option value="{$vo['id']}" {notempty name="sys_user_id" } {if condition="$sys_user_id eq $vo['id'] "} selected="selected" {/if} {/notempty} >{$vo['username']}-{$vo['realname']}</option>
                    {/volist}
                </select>
                <span class="help-block m-b-none"></span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">备注说明</label>
            <div class="col-sm-10">
                <textarea name="remark" class="form-control"></textarea>
                <span class="help-block m-b-none"></span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">报销明细</label>
            <div class="col-sm-10">
                <div class="reimburse_list">
                    <table class="table table-bordered">
                        <thead>
                        <tr>
                            <th width="120" class="text-center">费用名称</th>
                            <th width="80" class="text-center">费用金额</th>
                            <th width="80" class="text-center">费用类型</th>
                            <th width="100"  class="text-center">发生日期</th>
                            <th width="150" class="text-center">备注</th>
                            <th width="50"  class="text-center">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td><input type="text" class="form-control"  name="fy_name[]"></td>
                            <td><input type="text" class="form-control number"  name="fy_money[]" value="0"></td>
                            <td>
                                <select name="fy_type_name[]" class="form-control">
                                    <option value="">选择费用类型</option>
                                    {volist name='type_list' id='vo'}
                                    <option value="{$vo.name}">{$vo.name}</option>
                                    {/volist}
                                </select>
                            </td>
                            <td><input type="text" class="form-control datepicker" name="fy_handle_date[]"></td>
                            <td><input type="text" class="form-control" name="fy_remark[]" value=""></td>
                            <td class="text-center">
                                <a href="#" class="del-table-tr">删除</a>
                            </td>
                        </tr>
                        </tbody>
                        <tfoot>
                        <tr>
                            <td colspan="1" class="text-right">费用合计</td>
                            <td><input type="text" name="total_money" class="form-control total_money_input" readonly></td>
                            <td colspan="4" class="text-right">
                                <a href="#" class="btn btn-success btn-xs add-table-tr">添加一行</a>
                            </td>
                        </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-8">
                {include file="admin@layout/save_btn"}
            </div>
        </div>
    </form>
</div>
{include file="oa_reimburse/function"/}